﻿using System;
using System.Collections.Generic;
using System.ComponentModel.Composition;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Compose;

namespace ConsoleApplication1
{
    //[Export(typeof(CommandLine.ICommand))]
    //[ExportMetadata("CommandName", "load")]

    [CommandLine.Command(CommandName = "clear")]
    class Class4 : CmdLine
    {

        public override  string Execute(string input)
        {
            return "插件已清空";
        }

        public Class4():base("clear")
        {
        }

        public override void CallBack(string msg)
        {

            Console.WriteLine(mName + ":" + msg);
        }



        public override string ReceiveMsg(string msg)
        {
            Console.WriteLine(mName + ":" + msg);
            return null;
        }

        public override void Dispose()
        {
            base.Dispose();
        }


    }
}
